home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-10-21 | 3.0 KB | 111 lines |
- #############################################################################
- #
- # Copyright (C) 1993 SciTech Software
- # All rights reserved.
- #
- # Descripton: Makefile for the SuperVGA test library.
- # MSDOS version for Borland C++ 3.0
- #
- # $Id: makefile 1.2 1993/10/22 08:57:59 kjb Exp $
- #
- #############################################################################
-
- # Turn on autodependency checking
-
- .AUTODEPEND
-
- # Let make know where to find all the appropriate files
-
- .PATH.asm = .
- .PATH.lib = .
- .PATH.obj = .
- .PATH.exe = .
-
- CC = bcc # Name of C compiler
- ASM = tasm # Name of assembler
- LINK = tlink # Name of linker
- LIB = tlib # Name of librarian
- LIB_FLAGS = /C
-
- !if $d(debug)
- CC_DOPT = -v # Turn on debugging for C compiler
- ASM_DOPT = /ZI # Turn on debugging for assembler
- LINK_OPT = /v /m /s # Turn on debugging for linker, and mapfile
- DEBUG = -Ddebug
- !endif
-
- # We must assemble the test programs in the large memory model
-
- MODEL = l
- ASM_MODEL = /d__LARGE__
-
- ASM_FLAGS = /MX /m /i$(.PATH.asm) $(ASM_DOPT) $(ASM_MODEL)
- CC_FLAGS = -m$(MODEL) $(CC_DOPT)
-
- # Implicit rules to make the object files for the test code
-
- .c.obj:
- $(CC) $(CC_FLAGS) -c {$< }
-
- .asm.obj:
- $(ASM) $(ASM_FLAGS) $<, $(.PATH.obj)\$&
-
- # Object files required to build the libraries
-
- OBJECTS = svgac.obj svga.obj
-
- all: test16.exe test256.exe test32k.exe test64k.exe test16m.exe paranoid.exe
-
- test16.exe: test16.obj svga.lib cpu.obj
- $(CC) $(CC_FLAGS) -e$< test16.obj svga.lib cpu.obj
-
- test256.exe: test256.obj svga.lib cpu.obj
- $(CC) $(CC_FLAGS) -e$< test256.obj svga.lib cpu.obj
-
- test32k.exe: test32k.obj svga.lib cpu.obj
- $(CC) $(CC_FLAGS) -e$< test32k.obj svga.lib cpu.obj
-
- test64k.exe: test64k.obj svga.lib cpu.obj
- $(CC) $(CC_FLAGS) -e$< test64k.obj svga.lib cpu.obj
-
- test16m.exe: test16m.obj svga.lib cpu.obj
- $(CC) $(CC_FLAGS) -e$< test16m.obj svga.lib cpu.obj
-
- paranoid.exe: paranoid.obj svga.lib cpu.obj
- $(CC) $(CC_FLAGS) -e$< paranoid.obj svga.lib cpu.obj
-
- # Target to make each of the library file
-
- svga.lib: $(OBJECTS)
- buildrsp &&!|
- $(OBJECTS)
- ! > temp.rsp
- $(LIB) $(LIB_FLAGS) $< @temp.rsp
- del temp.rsp
-
- # Clean up directory removing all files not needed to make the library
-
- clean:
- @del *.sym *.bak *.tdk *.map *.dsk *.log
- except (cpu.obj svga.obj) del *.obj
-
- realclean: clean
- @del *.exe *.lib *.obj
-
- stamp:
- @foreach "rcs -N$(VERSION): -srelease" files.lst
-
- rcsclean:
- @foreach rcsclean files.lst
-
- # Check in the latest revisions of source files with RCS
-
- ci:
- @foreach "ci -q -u -mupdate $(RCSOPT)" files.lst
-
- # Check out the latest revisions of source files from RCS
-
- co:
- @foreach "co -q $(RCSOPT)" files.lst
-
-